#ifndef TRIANGLE_H
#define TRIANGLE_H

#include <QDebug>
#include <QElapsedTimer>
#include <QExpandOpenGLWidget>
#include <memory>
class Triangle : public QExpandOpenGLWidget
{
public:
    Triangle();
    ~Triangle();

protected:
    virtual void initializeGL();
    virtual void resizeGL(int w, int h);
    virtual void paintGL();
private:
    unsigned int texture1, texture2;
    QElapsedTimer time;
    std::shared_ptr<Shader> shader = nullptr;
};

#endif // TRIANGLE_H
